home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1295 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  41 lines

  1. Path: colossus.holonet.net!windmill!charlie.brown
  2. Distribution: world
  3. Newsgroups: comp.lang.c
  4. From: charlie.brown@windmill.com (Charlie Brown)
  5. Date: Fri, 12 Jan 1996 11:10:00 -0600
  6. Organization: The Windmill Company BBS - 806-792-6116
  7. Subject: Cheap Temp. Sensor    2/2
  8. Message-ID: <59.26228.5782@windmill.com>
  9.  
  10. (Continued from previous message)
  11.  
  12.                 return (unsigned int)(65536L + (long)hack1.w - (long)hack2.w); 
  13.         else
  14.                 return (hack1.w - hack2.w);
  15. }
  16.  
  17. /************************************************************************
  18. *            MAIN                                                       *
  19. *************************************************************************/
  20. int main(argc,argv)
  21. int argc;
  22. char *argv[];
  23. {
  24.         int i;
  25.         
  26.  
  27.  
  28.         while(!kbhit())
  29.         {
  30.                 for(i=0;i<4;i++)
  31.                         printf("%d ",Joystick_Position(i));
  32.                 printf("\r");
  33.         }
  34.         printf("\n");
  35.         
  36.  
  37.         return 0;
  38. }
  39. ---
  40.  * QMPro 1.01 41-4987 * BorgBurger:  We do it our way. Your way is irrelevant.
  41.